﻿using System;
using System.Collections.Generic;
using Domin;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JwT;

namespace App
{
    public interface IRApp
    {
        /// <summary>
        /// 用户显示
        /// </summary>
        /// <returns></returns>
        List<Peoples> PShow();
        /// <summary>
        /// 角色显示
        /// </summary>
        /// <returns></returns>
        List<Roles> RShow();
        /// <summary>
        /// 用户权限显示
        /// </summary>
        /// <returns></returns>
        List<RolePowers> OShow();
        /// <summary>
        /// 用户添加
        /// </summary>
        /// <param name="peoples"></param>
        /// <returns></returns>
        int Add(Peoples peoples);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int Del(string id);
        /// <summary>
        /// 用户角色添加
        /// </summary>
        /// <param name="nm"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        int HAdd(string nm,int id);
        /// <summary>
        /// 用户权限添加
        /// </summary>
        /// <param name="rolePowers"></param>
        /// <returns></returns>
        int RAdd(RolePowers rolePowers);
        /// <summary>
        /// 权限显示
        /// </summary>
        /// <returns></returns>
        List<Powers> WShow();
        List<Mune> MShow();
        int MAdd(RoleMune roleMune);
        List<RoleMune> UShow();
        ResponseModel Login(UserLoginDto user);
    }
}
